The parameter undefined is not used and could be removed.
This check looks for parameters in functions that are not used in the function
body and are not followed by other parameters which are used inside the function.
Loading history...
11
'use strict';
12
/** global: OCA */
13
if (!OCA.Ocr) {
14
/**
15
* @namespace
16
* global: OCA
17
*/
18
OCA.Ocr = {};
19
}
20
/**
21
* OCA.Ocr.App
22
* Integrates all necessary objects to build the app.
23
* @type {{initialize: OCA.Ocr.App.initialize}}
24
* global: OCA
25
*/
26
OCA.Ocr.App = {
27
/**
28
* Initialize function. Gets all things together.
29
*/
30
initialize: function () {
31
var self = this;
32
//Create the OCR object
33
/** global: OC, OCA */
34
this._ocr = new OCA.Ocr.Ocr(OC.generateUrl('/apps/ocr'));
35
// Create the View Object
36
/** global: OCA */
37
this._view = new OCA.Ocr.View(this._ocr);
38
self._ocr.initialize().done(function(){
39
self._view.initialize();
40
}).fail(function (message) {
41
self._view.notifyError('OCR App could not be initialized: ' + message);
42
});
43
},
44
/**
45
* Destroy function. Deregisters everthing and destroys the Ocr app.
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.